package org.cyk.dataes.api

import org.cyk.dataes.service.UserInfoService
import org.springframework.web.bind.annotation.RestController
import javax.annotation.Resource
import org.springframework.web.bind.annotation.GetMapping

@RestController
class UserInfoApi {

    @Resource private lateinit var userInfoService: UserInfoService

    @GetMapping("/user")
    fun test() {
        val result = userInfoService.ktQuery().list()
        result.forEach(::println)
    }

}